#!/bin/bash

while true
do
    uptime > uptime.txt
    sleep 3s
done
